package com.css.dzj.zfjg.modules.feedbackrelate.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Objects;

/**
 * 联合监管任务反馈关联表
 */
@Entity
@Table(name = "JG_LHJG_RWFKGL", schema = "DZJZFJG", catalog = "")
public class JgLhjgRwfkglEntity {
    private String uuid;
    private String taskno;
    private String actionId;
    private String dffkId;
    private String superviseItemCode;

    @Id
    @Column(name = "Uuid")
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "com.css.dzj.zfjg.common.util.SnowflakeId")
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Basic
    @Column(name = "taskno")
    public String getTaskno() {
        return taskno;
    }

    public void setTaskno(String taskno) {
        this.taskno = taskno;
    }

    @Basic
    @Column(name = "Action_Id")
    public String getActionId() {
        return actionId;
    }

    public void setActionId(String actionId) {
        this.actionId = actionId;
    }

    @Basic
    @Column(name = "Dffk_Id")
    public String getDffkId() {
        return dffkId;
    }

    public void setDffkId(String dffkId) {
        this.dffkId = dffkId;
    }

    @Basic
    @Column(name = "Supervise_Item_Code")
    public String getSuperviseItemCode() {
        return superviseItemCode;
    }

    public void setSuperviseItemCode(String superviseItemCode) {
        this.superviseItemCode = superviseItemCode;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JgLhjgRwfkglEntity that = (JgLhjgRwfkglEntity) o;
        return Objects.equals(uuid, that.uuid) &&
                Objects.equals(taskno, that.taskno) &&
                Objects.equals(actionId, that.actionId) &&
                Objects.equals(dffkId, that.dffkId) &&
                Objects.equals(superviseItemCode, that.superviseItemCode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uuid, taskno, actionId, dffkId, superviseItemCode);
    }
}
